/*
 * @Description: 左侧列表
 * @Author: Zzt
 * @Date: 2022-10-12 11:17:42
 * @LastEditTime: 2022-10-24 18:47:49
 */
import { useStandardizedDetectionContext } from '../contexts/StandardizedDetectionContext';
import FolderTree from '@/components/FolderTree';
import UFANav, { IUFAChangeCallback } from '@/components/UFANav';

const PageSidebar = () => {
  const { setSelectFondId, setSelectAT, setSelectATId, setSelectFond } =
    useStandardizedDetectionContext();

  const navChange = ({ fondId, fondItem, atId, atItem }: IUFAChangeCallback) => {
    console.log(fondItem);
    setSelectFond(fondItem);
    setSelectFondId(fondId);
    setSelectAT(atItem);
    setSelectATId(atId);
  };

  return (
    <>
      <UFANav onChange={navChange} />
    </>
  );
};

export default PageSidebar;
